<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        if (parent._urlEncode_iframe_callback) {

            parent._urlEncode_iframe_callback(location.search.split('=')[1]);

            //直接关闭当前子窗口
            window.close();
        }
    </script>
</head>
<body>

</body>

<script id="ss" src="demo.dist.js"></script>

</html>